package com.ibbi.admin.client.rpc.obj;

import java.util.Date;
import corelib.client.jsonrpc.JSONSerializable;

public class Category implements JSONSerializable {
	
    private int Id;
    private String Name;
    private String Title;
    private int Type;
    private String Thumb;
    private String Description;
    private String Keywords;
    private boolean Enable;
    private Integer PID;
    private int LID;
    private int RID;
    private int Level;
    private int ListOrder;
    private Date DateCreated;
    private Date DateUpdated;
    
    public Category(){
    	
    }

	public int getId() {
		return Id;
	}

	public void setId(int id) {
		Id = id;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public String getTitle() {
		return Title;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public int getType() {
		return Type;
	}

	public void setType(int type) {
		Type = type;
	}

	public String getThumb() {
		return Thumb;
	}

	public void setThumb(String thumb) {
		Thumb = thumb;
	}

	public String getDescription() {
		return Description;
	}

	public void setDescription(String description) {
		Description = description;
	}

	public String getKeywords() {
		return Keywords;
	}

	public void setKeywords(String keywords) {
		Keywords = keywords;
	}

	public boolean isEnable() {
		return Enable;
	}

	public void setEnable(boolean enable) {
		Enable = enable;
	}

	public Integer getPID() {
		return PID;
	}

	public void setPID(Integer pID) {
		PID = pID;
	}

	public int getLID() {
		return LID;
	}

	public void setLID(int lID) {
		LID = lID;
	}

	public int getRID() {
		return RID;
	}

	public void setRID(int rID) {
		RID = rID;
	}

	public int getLevel() {
		return Level;
	}

	public void setLevel(int level) {
		Level = level;
	}

	public int getListOrder() {
		return ListOrder;
	}

	public void setListOrder(int listOrder) {
		ListOrder = listOrder;
	}

	public Date getDateCreated() {
		return DateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		DateCreated = dateCreated;
	}

	public Date getDateUpdated() {
		return DateUpdated;
	}

	public void setDateUpdated(Date dateUpdated) {
		DateUpdated = dateUpdated;
	}
    
	public boolean isRoot(){
		return PID == null;
	}
	
    public boolean isLeaf(){
    	return RID == LID + 1;
    }
    
}
